Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for Postgres array of custom types #1483

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

demurgos
Copy link
Contributor

@demurgos demurgos commented Oct 8, 2021

This commit fixes the array decoder to support custom types. The core of the issue was that the array decoder did not use the type info retrieved from the database. It means that it only supported native types.

This commit fixes the issue by using the element type info fetched from the database. A new internal helper method is added to the PgType struct: it returns the type info for the inner array element, if available.

Closes #1477

This commit fixes the array decoder to support custom types. The core of the issue was that the array decoder did not use the type info retrieved from the database. It means that it only supported native types.

This commit fixes the issue by using the element type info fetched from the database. A new internal helper method is added to the `PgType` struct: it returns the type info for the inner array element, if available.

Closes launchbadge#1477
@winston0410
Copy link

I bumped into this issue, and luckily saw this PR. Will this be merged?

@iupii
Copy link

iupii commented Dec 6, 2021

I have the same issue and that PR fixed it.

@abonander abonander merged commit 32f1273 into launchbadge:master Dec 29, 2021
@demurgos
Copy link
Contributor Author

Thank you for merging this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal error: use of unresolved type declaration
4 participants